/*
 * XML Type:  buscarUsuarioResponse
 * Namespace: http://ejb.extranet.bf.pe/
 * Java type: pe.bf.extranet.ejb.BuscarUsuarioResponse
 *
 * Automatically generated - do not modify.
 */
package pe.bf.extranet.ejb.impl;

import pe.bf.domain.bean.Usuario;

/**
 * An XML buscarUsuarioResponse(@http://ejb.extranet.bf.pe/).
 *
 * This is a complex type.
 */
public class BuscarUsuarioResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements pe.bf.extranet.ejb.BuscarUsuarioResponse
{
    
    public BuscarUsuarioResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RETURN$0 = 
        new javax.xml.namespace.QName("", "return");
    
    
    /**
     * Gets the "return" element
     */
    public Usuario getReturn()
    {
        synchronized (monitor())
        {
            check_orphaned();
            Usuario target = null;
            target = (Usuario)get_store().find_element_user(RETURN$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "return" element
     */
    public boolean isSetReturn()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RETURN$0) != 0;
        }
    }
    
    /**
     * Sets the "return" element
     */
    public void setReturn(Usuario xreturn)
    {
        synchronized (monitor())
        {
            check_orphaned();
            Usuario target = null;
            target = (Usuario)get_store().find_element_user(RETURN$0, 0);
            if (target == null)
            {
                target = (Usuario)get_store().add_element_user(RETURN$0);
            }
            target=(xreturn);
        }
    }
    
    /**
     * Appends and returns a new empty "return" element
     */
    public Usuario addNewReturn()
    {
        synchronized (monitor())
        {
            check_orphaned();
            Usuario target = null;
            target = (Usuario)get_store().add_element_user(RETURN$0);
            return target;
        }
    }
    
    /**
     * Unsets the "return" element
     */
    public void unsetReturn()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RETURN$0, 0);
        }
    }
}
